
my_list=["黑马程序员","传智播客","传智播客","itheima","itcast","itheima","itcast","best"]

# set()和{}之间的区别是：后者创建一个空的字典 前者是创建空集合
my_set=set()#定义一个空集合


for n in my_list:
    my_set.add(n)

print(f"my_set的元素：{my_set}")